import java.math.BigInteger;

import net.spadea.math.fraction.Fraction;


public class Tester {

	public static void main(String[] args) {
		
		System.out.println("Fraction addition:");
		
		Fraction one_third = new Fraction(0, 1, 3);
		
		Fraction sum = one_third;
		System.out.println("Sum = " + sum );
		sum = sum.add(one_third);
		System.out.println("Sum = " + sum );
		sum = sum.add(one_third);
		System.out.println("Sum = " + sum );

		
		System.out.println("\nFloat addition:");
		float flt_one_third = (float) 1/3;
		float flt_sum = flt_one_third;
		System.out.println("Sum = " + flt_sum );
		flt_sum = flt_sum + flt_one_third;
		System.out.println("Sum = " + flt_sum );
		flt_sum = flt_sum + flt_one_third;
		System.out.println("Sum = " + flt_sum );
		
	}
}
